package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.AdSensitive;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author tmh
 * @date 2023/8/27 19:52
 * @description
 */

public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 查找所有敏感词
     * @param sensitiveDto
     * @return
     */
    public ResponseResult findAll(SensitiveDto sensitiveDto);

    /**
     * 根据id删除敏感词
     * @param id
     * @return
     */
    ResponseResult deleteSensitiveById(Integer id);

    /**
     * 创建敏感词
     * @param adSensitive
     * @return
     */
    ResponseResult saveSensitive(AdSensitive adSensitive);

    /**
     * 更新敏感词
     * @param adSensitive
     * @return
     */
    ResponseResult updateSensitive(AdSensitive adSensitive);

}
